<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./js/jquery.js"></script>
    <style></style>
  </head>
  <body>
    <div class="fater" title="one">
      <div class="son">我是儿子</div>
      <p class="ps">邻居</p>
    </div>
    <div>
      <div class="box">我是老大</div>
      <div>我是老二</div>
      <div>我是老三</div>
    </div>
    <ul>
      <li title="BB">111111111</li>
      <li class="lis">222222222</li>
      <li>3333333</li>
      <li>4444444444</li>
    </ul>
    <!-- <input type="text" name="" id="" value="9999">
       <input type="checkbox" checked="checked" name="check" value="Weekly" />
        <input type="checkbox"  name="check" value="Weekly" /> -->
    <button>全选</button>
<button>全不选</button>
    <input type="checkbox"  name="check" value="Weekly" />
     <input type="checkbox"  name="check" value="Weekly" />
    <script>
      $(function () {
          $("button:first").click(function () {
             $(":checkbox").attr("checked",true)
          })
        $("button:last").click(function () {
             $(":checkbox").attr("checked",false)
          })
      });
    </script>
  </body>
</html>
